Skip to content

Conversation

@ikostan
Copy link
Contributor

@ikostan ikostan commented Oct 29, 2025

This adds a single test case to catch implementations that overcount contiguous horizontal flowers (e.g., scanning chains instead of immediate neighbors). As discussed and approved in the forum thread: https://forum.exercism.org/t/flower-field-overcounting-horizontal-neighbors-issue/19774

The test uses the suggestion from @IsaacG: Input [" ** "], Expected ["1**1"].

No vertical test added, as the buggy example doesn't fail there, and we agreed to keep tests non-exhaustive.

Thanks to @IsaacG, @SleeplessByte, and @mk-mxp for the feedback and consensus!

@github-actions
Copy link
Contributor

Hello. Thanks for opening a PR on Exercism 🙂

We ask that all changes to Exercism are discussed on our Community Forum before being opened on GitHub. To enforce this, we automatically close all PRs that are submitted. That doesn't mean your PR is rejected but that we want the initial discussion about it to happen on our forum where a wide range of key contributors across the Exercism ecosystem can weigh in.

You can use this link to copy this into a new topic on the forum. If we decide the PR is appropriate, we'll reopen it and continue with it, so please don't delete your local branch.

If you're interested in learning more about this auto-responder, please read this blog post.


Note: If this PR has been pre-approved, please link back to this PR on the forum thread and a maintainer or staff member will reopen it.

@github-actions github-actions bot closed this Oct 29, 2025
@BNAndras BNAndras reopened this Oct 29, 2025
@IsaacG IsaacG merged commit 60a5626 into exercism:main Oct 29, 2025
7 checks passed
@ikostan ikostan deleted the add-flower-field-horizontal-test branch October 29, 2025 23:41
kahgoh added a commit to kahgoh/exercism-java that referenced this pull request Oct 31, 2025
kahgoh added a commit to kahgoh/exercism-java that referenced this pull request Oct 31, 2025
Update to add new test case from exercism/problem-specifications#2603.

Also, changed all Collections.singletonList and Arrays.asList calls to
the modern List.of calls for consistency.
kahgoh added a commit to kahgoh/exercism-vlang that referenced this pull request Oct 31, 2025
jagdish-15 pushed a commit to exercism/java that referenced this pull request Oct 31, 2025
* Update flower field

Update to add new test case from exercism/problem-specifications#2603.

Also, changed all Collections.singletonList and Arrays.asList calls to
the modern List.of calls for consistency.

* Update flower field tests.toml

This is to reflect the update to the exercise's test in the previous commit.
keiravillekode pushed a commit to exercism/vlang that referenced this pull request Nov 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants